import{defineStore} from 'pinia'
import{ref} from 'vue'

export const useMenuStore = defineStore('menu',()=>{
    //登录状态
    const menus = ref([]) // 将初始值改为数组
    function setMenus(data:any){
        menus.value = data
    }
    return{
        setMenus,
        menus
    }
})